﻿using System.IdentityModel.Selectors;
using System.IdentityModel.Tokens;
using System.ServiceModel;

namespace Oddo.Concept.Crm.Common.Security
{
    public class CustomUserNamePasswordValidator : UserNamePasswordValidator
    {
        public override void Validate(string userName, string password)
        {
            if(string.IsNullOrWhiteSpace(userName) && string.IsNullOrWhiteSpace(password))
                throw new SecurityTokenException("Unknown Username or Incorrect Password");
        }

        
    }
}